package com.qikecn.utils;
/**
 * 用户等级
 * @author wangst
 *
 */
public class UserLevelUtil {
	
	/**
	 * 获取当前用户等级
	 * @param score
	 * @return
	 */
	public static int getUserLevel(double score){
		int level = 1;
		if(score < 500){
			level = 1;
		}else if(score < 1000){
			level = 2;
		}else if(score < 2000){
			level = 3;
		}else if(score < 3000){
			level = 4;
		}else if(score < 5000){
			level = 5;
		}else if(score < 7000){
			level = 6;
		}else if(score < 10000){
			level = 7;
		}else if(score < 13000){
			level = 8;
		}else if(score < 20000){
			level = 9;
		}else {
			level = 10;
		}
		return level;
	}
}
